package com.SmartWallet.models;

import java.io.*;

public class ListEntry implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int cost;
	private String type, name, comment;
	
	public ListEntry(String name, int cost, String comment, String type)
	{
		this.name = name;
		this.cost = cost;
		this.comment = comment;
		this.type = type;
	}
	
	public ListEntry(String name, int cost)
	{
		this.name = name;
		this.cost = cost;
		comment = "";
		type = "";
	}
	
	public ListEntry(String name, int cost, String type)
	{
		this.name = name;
		this.cost = cost;
		comment = "";
		this.type = type;
	}
	
	public int getCost()
	{
		return cost;
	}
	
	public String getName()
	{
		return name;
	}
	
	public String getComment()
	{
		return comment;
	}
	
	public String getType()
	{
		if(type == null)
		{
			type="other";
		}
		return type;
	}
	
	public void setCost(int cost)
	{
		this.cost = cost;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public void setComment()
	{
		this.comment = comment;
	}
	
	public void setType()
	{
		this.type = type;
	}

}
